import java.util.Arrays;
import java.util.Scanner;

public class test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();//字符个数
        String[] s = new String[n];
        for (int i = 0; i <n ; i++) {
            s[i] = in.next();
        }
        System.out.println(Arrays.toString(reverseString(s)));
    }

    public static String[] reverseString (String[] s) {
        // write code here
        int n = s.length;
        StringBuilder stringBuilder = new StringBuilder();
        String[] result = new String[n];
        for (int i = 0; i <n ; i++) {
            stringBuilder.append(s[i]);
        }
        stringBuilder.reverse();
        for (int i = 0; i <n ; i++) {
            result[i] = String.valueOf(stringBuilder.charAt(i));
        }
        return result;
    }
}
